import { ProjectService } from './../../modules/project/project.service';
import { Controller, Get, Param } from '@nestjs/common';

@Controller('miao/project')
export class ProjectController {

  constructor(
    private readonly projectService: ProjectService,
  ){}


  @Get('list')
  async list(){
    return await this.projectService.list()
  }

  @Get(':id')
  async index(
    @Param('id') _id: string
  ){
    return await this.projectService.get(parseInt(_id))
  }

}
